/*
 *	Created on: 2011-9-23
 *      Author: Jawinton
 */

#include <math.h>
#include <stdio.h>
#include <stdlib.h>

#define MAX 1000

int main(void){
	int i,j;
	for(i=1;i<=MAX;i+=2){
		int s = sqrt(i);
		for(j=3;j<=s;j+=2){
			if(i%j == 0)
				break;
		}
		if(j > s)
			printf("%d ",i);
	}
	exit(1);
}

